package com.transport.service;

import java.util.Map;

import com.transport.dao.BoardDao;
import com.transport.model.Board;
import com.transport.utils.PageSet;

public class BoardService {
	private BoardDao boardDao ;

	public BoardDao getBoardDao() {
		return boardDao;
	}

	public void setBoardDao(BoardDao boardDao) {
		this.boardDao = boardDao;
	}

	public String addBoard(Board board) {
		
		return boardDao.addBoard(board);
	}

	public String checkExist(Board board) {
		return boardDao.checkExist(board);
	}

	public Map queryCompanyList(PageSet pageSet) {
		return boardDao.queryCompanyList(pageSet);
	}

	public void deleteBoard(String id) {
		boardDao.deleteBoard(id);
	}

	public Board queryBoardById(String id) {
		return boardDao.queryBoardById(id);
	}

	public String updateBoard(Board board) {
		return boardDao.updateBoard(board);
	}

	public Integer showNotice(String id) {
		return boardDao.showNotice(id);
	}
}
